package de.baumann.browser.api.net

import de.baumann.browser.BuildConfig
import de.baumann.browser.api.net.base.BaseUrl
import de.baumann.browser.api.net.vo.Result
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

@BaseUrl("${BuildConfig.DUOBAO_API_URL}api/hash/")
interface HashApiService {

    @FormUrlEncoded
    @POST("check")
    fun check(@Field("hash") hash: String,
              @Field("hashResult") hashResult: String): Observable<Result<String>>


}